<template>
  <el-dialog
    title="创建任务"
    :visible.sync="taskCreatedDialogVisible"
    width="50%"
    :before-close="closeDialog"
  >
    <span class="main"></span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="closeDialog">关 闭</el-button>
      <el-button type="primary" @click="createdTask">创 建</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: ["taskCreatedDialogVisible"],
  data() {
    return {};
  },
  methods: {
    // 保存按钮
    createdTask() {
      console.log("创建任务");
      this.closeDialog();
    },
    // 关闭对话框
    closeDialog() {
      this.$emit("closeDialog");
    },
  },
};
</script>

<style>
</style>